package au.com.iglootech.winerymap.entity.dto;

import java.io.Serializable;

import javax.jdo.annotations.Persistent;

import au.com.iglootech.winerymap.entity.WineryInfo;

/**
 * 
 * @author Nicholas Zhu
 * 
 */
public class WineryInfoDTO implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -3921421002195183136L;
	private String keyValue;
	private String companyName;
	private String contactNumber;
	private String tfn;
	private String email;
	private String address1;
	private String address2;
	private String address3;
	private String contactName;
	private String description;
	private Double lat;
	private Double lng;
	private String website;
	private String region;
	private String tradeName;
	private String telephone;
	private String winemaker;
	private String wineryards;
	private String facsimilie;

	/**
	 * constructor.
	 */
	public WineryInfoDTO() {

	}

	/**
	 * 
	 * @param winery
	 *            winery
	 */
	public WineryInfoDTO(final WineryInfo winery) {
		this.keyValue = winery.getKeyValue();
		this.companyName = winery.getCompanyName();
		this.contactNumber = winery.getContactNumber();
		this.tfn = winery.getTfn();
		this.email = winery.getEmail();
		this.address1 = winery.getAddress1();
		this.address2 = winery.getAddress2();
		this.address3 = winery.getAddress3();
		this.contactName = winery.getContactName();
		this.description = winery.getDescription().getValue();
		this.lat = winery.getLat();
		this.lng = winery.getLng();
		this.website = winery.getWebsite();
		this.region = winery.getRegion();
		this.tradeName = winery.getTradeName();
		this.telephone = winery.getTelephone();
		this.winemaker = winery.getWinemaker();
		this.wineryards = winery.getWineryards();
		this.facsimilie = winery.getFacsimilie();
	}

	/**
	 * @return the keyValue
	 */
	public String getKeyValue() {
		return keyValue;
	}

	/**
	 * @param keyValue
	 *            the keyValue to set
	 */
	public void setKeyValue(final String keyValue) {
		this.keyValue = keyValue;
	}

	/**
	 * @return the companyName
	 */
	public String getCompanyName() {
		return companyName;
	}

	/**
	 * @param companyName
	 *            the companyName to set
	 */
	public void setCompanyName(final String companyName) {
		this.companyName = companyName;
	}

	/**
	 * @return the contactNumber
	 */
	public String getContactNumber() {
		return contactNumber;
	}

	/**
	 * @param contactNumber
	 *            the contactNumber to set
	 */
	public void setContactNumber(final String contactNumber) {
		this.contactNumber = contactNumber;
	}

	/**
	 * @return the tfn
	 */
	public String getTfn() {
		return tfn;
	}

	/**
	 * @param tfn
	 *            the tfn to set
	 */
	public void setTfn(final String tfn) {
		this.tfn = tfn;
	}

	/**
	 * @return the email
	 */
	public String getEmail() {
		return email;
	}

	/**
	 * @param email
	 *            the email to set
	 */
	public void setEmail(final String email) {
		this.email = email;
	}

	/**
	 * @return the address1
	 */
	public String getAddress1() {
		return address1;
	}

	/**
	 * @param address1
	 *            the address1 to set
	 */
	public void setAddress1(final String address1) {
		this.address1 = address1;
	}

	/**
	 * @return the address2
	 */
	public String getAddress2() {
		return address2;
	}

	/**
	 * @param address2
	 *            the address2 to set
	 */
	public void setAddress2(final String address2) {
		this.address2 = address2;
	}

	/**
	 * @return the address3
	 */
	public String getAddress3() {
		return address3;
	}

	/**
	 * @param address3
	 *            the address3 to set
	 */
	public void setAddress3(final String address3) {
		this.address3 = address3;
	}

	/**
	 * @return the contactName
	 */
	public String getContactName() {
		return contactName;
	}

	/**
	 * @param contactName
	 *            the contactName to set
	 */
	public void setContactName(final String contactName) {
		this.contactName = contactName;
	}

	/**
	 * @return the description
	 */
	public String getDescription() {
		return description;
	}

	/**
	 * @param description
	 *            the description to set
	 */
	public void setDescription(final String description) {
		this.description = description;
	}

	/**
	 * @return the lat
	 */
	public final Double getLat() {
		return lat;
	}

	/**
	 * @param lat
	 *            the lat to set
	 */
	public final void setLat(Double lat) {
		this.lat = lat;
	}

	/**
	 * @return the lng
	 */
	public final Double getLng() {
		return lng;
	}

	/**
	 * @param lng
	 *            the lng to set
	 */
	public final void setLng(Double lng) {
		this.lng = lng;
	}

	/**
	 * @return the website
	 */
	public final String getWebsite() {
		return website;
	}

	/**
	 * @param website
	 *            the website to set
	 */
	public final void setWebsite(String website) {
		this.website = website;
	}

	/**
	 * @return the region
	 */
	public final String getRegion() {
		return region;
	}

	/**
	 * @param region
	 *            the region to set
	 */
	public final void setRegion(String region) {
		this.region = region;
	}

	/**
	 * @return the tradeName
	 */
	public final String getTradeName() {
		return tradeName;
	}

	/**
	 * @param tradeName
	 *            the tradeName to set
	 */
	public final void setTradeName(String tradeName) {
		this.tradeName = tradeName;
	}

	/**
	 * @return the telephone
	 */
	public final String getTelephone() {
		return telephone;
	}

	/**
	 * @param telephone
	 *            the telephone to set
	 */
	public final void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	/**
	 * @return the winemaker
	 */
	public final String getWinemaker() {
		return winemaker;
	}

	/**
	 * @param winemaker
	 *            the winemaker to set
	 */
	public final void setWinemaker(String winemaker) {
		this.winemaker = winemaker;
	}

	/**
	 * @return the wineryards
	 */
	public final String getWineryards() {
		return wineryards;
	}

	/**
	 * @param wineryards
	 *            the wineryards to set
	 */
	public final void setWineryards(String wineryards) {
		this.wineryards = wineryards;
	}

	/**
	 * @return the facsimilie
	 */
	public final String getFacsimilie() {
		return facsimilie;
	}

	/**
	 * @param facsimilie
	 *            the facsimilie to set
	 */
	public final void setFacsimilie(String facsimilie) {
		this.facsimilie = facsimilie;
	}

}
